//
//  UIPageScrollView.h
//  FingerChinese
//
//  Created by luar on 14/02/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PageView;

@interface UIPageScrollView : UIScrollView <UIScrollViewDelegate> {
	UIViewController *host;
	PageView *pageL;
	PageView *page;
	PageView *pageR;
	PageView *curPage;
	int frameWidth;
	int frameHeight;
	int pageQuantity;
	int pageOriginalWidth;
	int pageOriginalHeight;
	int pageWidth;
	int pageWidth2;
	int pageHeight;
	int pageHeight2;
	int pageNo;
	int pageGap;
	CGPoint lastContentOffset;
	BOOL isHorizontalScroll;
	BOOL isPageMoving;
	BOOL canDoubleTapZoom;
}

- (void)updateInterfaceOrientation;
- (void)initPage;
- (void)getPage:(NSInteger)pageIndex isNewPage:(BOOL)newPage;
- (PageView*)genPage:(NSInteger)pageIndex isNewPage:(BOOL)newPage;
- (void)jumpPage:(int)_pageNo;
- (void)movePage:(int)dir;
- (void)checkPageNeedMove;
- (void)removeAll:(PageView *)_page;
- (void)_doubleTapZoom;

@property (nonatomic, retain) UIViewController *host;
@property (nonatomic, readwrite) int frameWidth;
@property (nonatomic, readwrite) int frameHeight;
@property (nonatomic, readonly) int pageNo;
@property (nonatomic, readwrite) int pageQuantity;
@property (nonatomic) BOOL canDoubleTapZoom;
@property (nonatomic) BOOL isHorizontalScroll;

@end

